import javax.servlet.GenericServlet;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import java.io.IOException;
import java.io.PrintWriter;

public class ShowLetter extends GenericServlet {
    @Override
    public void service(ServletRequest request, ServletResponse response) throws ServletException, IOException {
        response.setContentType("text/html;charset=utf-8");
        PrintWriter out=response.getWriter();
        out.println("<html><body>");
        out.println("<BR>英文大写字母:");
        for(char c='A';c<='Z';c++){
            out.print(c+" ");
        }
        out.println("<BR>英文小写字母:");
        for (char c='a';c<='z';c++){
            out.print(c+" ");
        }
        out.println("</body></html>");
    }
}
